﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAO;

namespace BUS
{
    public class KhachHangBUS
    {
        public static DataTable GetAll()
        {
            return KhachHangDAO.GetAll();
        }
        public static DataTable GetTheoMa(int MaKhachHang)
        {
            return KhachHangDAO.GetTheoMa(MaKhachHang);
        }
        public static DataTable MaKhachTheoTen(string TenKhachHang)
        {
            return KhachHangDAO.MaKhachTheoTen(TenKhachHang);
        }
        public static DataTable DSKhachHangTheoMaPhieuThue(int mapt)
        {
            return KhachHangDAO.DSKhachHangTheoMaPhieuThue(mapt);
        }
        //************************************************//
        //Author:Nguyen Tan Phat
        //MSSV:1173025
        //Class:11HT
        #region
        public static DataSet SelectAll()
        {
            return KhachHangDAO.SelectAll();
        }
        public static int Insert(KhachHangDTO KHACHHANG)
        {
            return KhachHangDAO.Insert(KHACHHANG);
        }
        public static void Delete(int MaKhachHang)
        {
            KhachHangDAO.Delete(MaKhachHang);
        }
        public static void Update(KhachHangDTO KHACHHANG)
        {
            KhachHangDAO.Update(KHACHHANG);
        }
        #endregion
        //************************************************//
        
    }
}
